package com.joezhou.spring.component.controller;

import com.joezhou.spring.component.service.DogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author JoeZhou
 *
 * <bean id="dogController" class="com.joezhou.spring.component.controller.DogController"/>
 */
@Slf4j
@Controller
public class DogController {

    @Autowired
    private DogService dogService;

    public void insert() {
        log.info("DogController.insert()...");
        dogService.insert();
    }
}
